package cn.edu.jsu.zjj.service.impl;

import cn.edu.jsu.zjj.mapper.DocuFilterMapper;
import cn.edu.jsu.zjj.model.entity.DocuFilter;
import cn.edu.jsu.zjj.service.DocuFilterService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
* @author 52837
* @description 针对表【sys_shit(筛选表格)】的数据库操作Service实现
* @createDate 2024-09-10 21:17:40
*/
@Service
public class DocuFilterServiceImpl extends ServiceImpl<DocuFilterMapper, DocuFilter>
    implements DocuFilterService {

    @Autowired
    private DocuFilterMapper docuFilterMapper;

    @Override
    public boolean isExistence(Long headerId) {
        QueryWrapper<DocuFilter> queryWrapper = new QueryWrapper<>();
        //添加去掉软删除条件
        queryWrapper.ne("is_deleted",0);
        queryWrapper.eq("header_id", headerId);
        return docuFilterMapper.exists(queryWrapper);
    }
}




